package com.peas.platform.module.icims.expenditure.setting.adapter.repository.po;

import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 差旅限额标准
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_expenditure_travel_quota`")
public class ExpenditureTravelQuotaPo extends BasePo {

    // 职级
    // 1~7
    // 字典取值:UserRank
    @Comment(value = "职级")
    @NotBlank(message = "职级不能为空")
    @Size(max = 20, message = "职级不能超过20个字符")
    @TableField(value = "`rank`", jdbcType = JdbcType.VARCHAR)
    private String rank;

    // 职级名称
    @Comment(value = "职级名称")
    @NotBlank(message = "职级名称不能为空")
    @Size(max = 200, message = "职级名称不能超过200个字符")
    @TableField(value = "`rank_name`", jdbcType = JdbcType.VARCHAR)
    private String rankName;

    // 机票限额
    // 一次差旅来回
    @Comment(value = "机票限额")
    @TableField(value = "`amount_quota_plane`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaPlane;

    // 动车火车费限额
    // 一次差旅来回
    @Comment(value = "动车火车费限额")
    @TableField(value = "`amount_quota_train`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaTrain;

    // 车船费限额
    // 一次差旅来回
    @Comment(value = "车船费限额")
    @TableField(value = "`amount_quota_ship`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaShip;

    // 酒店限额(含税)
    // 每天限制
    @Comment(value = "酒店限额(含税)")
    @TableField(value = "`amount_quota_hotel`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaHotel;

    // 市内交通费
    // 每天限制
    @Comment(value = "市内交通费")
    @TableField(value = "`amount_quota_car`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaCar;

    // 差旅补贴
    // 每天限制
    @Comment(value = "差旅补贴")
    @TableField(value = "`amount_quota_catering`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountQuotaCatering;

}
